const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  deviceCategory: state => state.app.deviceCategory,
  showSubData: state => state.user.showSubData,
  subAccount : state => state.user.subAccount,
  isAdmin: state => state.user.isAdmin,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  logo: state => state.user.logo,
  title: state => state.user.title,
  name: state => state.user.name,
  mobile: state => state.user.mobile,
  introduction: state => state.user.introduction,
  roles: state => state.user.roles,
  columns: state => state.user.columns,
  accounts: state => state.user.accounts,
  setting: state => state.user.setting,
  actions: state => state.permission.actions,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs,
  deviceType:()=>{
    return {
      'ALL':[
        '超声NB阀控',
        '超声NB无阀',
        '超声CAT1阀控',
        '超声CAT1无阀',
        '智能表NB阀控',
        '智能表NB无阀',
        '智能表CAT1阀控',
        '智能表CAT1无阀'
      ],
      'CS':[
        '超声NB阀控',
        '超声NB无阀',
        '超声CAT1阀控',
        '超声CAT1无阀',
        '大口径超声NB阀控',
        '大口径超声NB无阀',
        '大口径超声CAT1阀控',
        '大口径超声CAT1无阀'
      ],'ZN':[
        '智能表NB阀控',
        '智能表NB无阀',
        '智能表CAT1阀控',
        '智能表CAT1无阀'
      ]}
  } ,
  customerType: () => {
    return [{label:"类型",value:0},{label:"居民",value:1}, {label:"商业",value:2}, {label:"工业",value:3},{label:"民用",value:4}]
  },
  paymentChannels: () => {
    return [
      {label:"未知",value:0},
      {label:"柜台-现金",value:1},
      {label:"柜台-微信",value:2},
      {label:"柜台-支付宝",value:3},
      {label:"柜台-网银",value:4},
      {label:"柜台-其他第三方",value:5},
      {label:"小程序-商户号",value:6},
    ]
  },
}
export default getters
